package com.xinqi.modules.sys.appversion.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.appversion.domain.AppVersionEntity;
import com.xinqi.modules.sys.appversion.dto.req.AppVersionCreateDTO;
import com.xinqi.modules.sys.appversion.dto.req.AppVersionUpdateDTO;
import com.xinqi.modules.sys.appversion.dto.rsp.AppVersionResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 版本记录列表转换
 *
 * @author: linkai
 * @date: 2023/04/27
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class AppVersionConvert {
    public abstract AppVersionEntity create(AppVersionCreateDTO s);

    public abstract AppVersionEntity update(AppVersionUpdateDTO s, @MappingTarget AppVersionEntity t);

    public abstract AppVersionEntity update(AppVersionUpdateDTO s);

    public abstract AppVersionResultDTO convert(AppVersionEntity s);
}
